{include file=member.header.html}
<style>
.table td{ padding-left: 5px; }
table .line td.last{border-right:1px #EEE solid}
</style>
<div class="content">
	<div class="totline"></div>
	<div class="botline"></div>
	{include file=member.menu.html}
	<div id="right"> {include file=member.curlocal.html}
		{include file=member.submenu.html}
		<div class="wrap">
			<div class="public_select table">
				<table>
					<tr class="line_bold">
						<th colspan="9">
							<div class="select_div" >
								<form method="get" class="clearfix">
									<div class="float-left">
										<input type="hidden" name="app" value="seller_promotion" />
										<input type="hidden" name="act" value="index" />
										<input type="text" name="pro_name" value="{$smarty.get.pro_name|escape}"/>
										<input type="submit" class="btn" value="{$lang.search}" />
									</div>
									<!--{if $filtered}--> 
									<a class="detlink" href="{url app=seller_promotion}">{$lang.cancel_query}</a> 
									<!--{/if}-->
									<div class="clear"></div>
								</form>
							</div>
						</th>
					</tr>
					<!--{if $promotion_list}-->
					<tr class="gray">
						<th width="50">{$lang.goods_image}</th>
						<th width="140">{$lang.goods_name}</th>
						<th width="60"><span>{$lang.promotion_name}</span></th>
						<th width="100"><span>{$lang.start_time}</span></th>
						<th width="100"><span>{$lang.end_time}</span></th>
						<th width="80"><span>{$lang.price}</span></th>
						<th width="80"><span>{$lang.promotion_price}</span></th>
						<th ><span>{$lang.status}</span></th>
						<th width="100"><span>{$lang.handle}</span></th>
					</tr>
					<!--{/if}--> 
					<!--{foreach from=$promotion_list item=promotion name=_promotion_f}-->
					<tr class="line<!--{if $smarty.foreach._promotion_f.last}--> last_line<!--{/if}-->">
						<td width="50" class="align2"><a href="{url app=goods&id=$promotion.goods_id}" target="_blank"><img src="{$site_url}/{$promotion.default_image}" width="50" height="50"  /></a></td>
						<td width="140"><a href="{url app=goods&id=$promotion.goods_id}" target="_blank">{$promotion.goods_name|escape|truncate:30}</a></td>
						<td width="60" align="align2"><a target="_blank" href="{url app=goods&id=$promotion.goods_id}">{$promotion.pro_name|escape}</a></td>
						<td width="100" class="align2">{$promotion.start_time|date:Y-m-d}</td>
						<td width="100" class="align2">{$promotion.end_time|date:Y-m-d}</td>
						<td width="80" class="align2">{$promotion.price}</td>
						<td width="80" class="align2">{$promotion.pro_price}</td>
						<td width="80" class="align2">{$promotion.status}</td>
						<td width="100" class="align2 last"><div><a href="{url app=seller_promotion&act=edit&id=$promotion.pro_id}">{$lang.edit}</a> | <a href="{url app=seller_promotion&act=drop&id=$promotion.pro_id}">{$lang.drop}</a> </div></td>
					</tr>
					<!--{foreachelse}-->
					<tr>
						<td class="align2" colspan="9"><div class="notice-word">
								<p>{$lang.no_records}</p>
							</div></td>
					</tr>
					<!--{/foreach}--> 
					<!--{if $promotion_list}-->
					<tr class="line_bold line_bold_bottom">
						<td colspan="9"></td>
					</tr>
					<tr>
						<th colspan="9"> <p class="position2"> {include file=member.page.bottom.html} </p>
						</th>
					</tr>
					<!--{/if}-->
				</table>
			</div>
		</div>
		<div class="clear"></div>
	</div>
	<div class="clear"></div>
</div>
<iframe name="iframe_post" id="iframe_post" width="0" height="0"></iframe>
{include file=footer.html}